<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本样式</title>
    <style>
      /*改变字体颜色*/
      #box1{
        color: coral;
      }
      /*改变字体透明度*/
      #box2{
        opacity: 20%;
      }
      /*字体设置*/
      #box3{
        /*设置字体*/
        font-family: 隶书;
        /*设置大小*/
        font-size: 2em;
        /*字体分格*/
        font-style: oblique;/*斜体*/
        /*字体粗细*/
        font-weight: bolder;
      }

      /*对其方式*/
      #box4{
        width: 200px;
        height: 200px;
        border: 1px red solid;
        text-align: center;
        /*line-height 行高 与盒子高度一样则居中*/
        line-height: 200px;
      }

      /*text-decoration 字体装饰*/
      #box5{
        text-decoration: line-through;

      }

      /*字间距*/
      #box6{
        letter-spacing: 5px;
      }

      

    </style>
</head>
<body>
  <div id="box1">我是盒子1</div>
  <div id="box2">我是盒子2</div>
  <div id="box3">我是盒子3</div>
  <div id="box4">我是盒子4</div>
  <div id="box5">我是盒子5</div>
  <div id="box6">我是盒子6</div>

</body>
</html>